package com.hospital.hospitalsystem.modules.login.service;

import com.hospital.hospitalsystem.modules.login.dao.entity.UserMessageEntity;
import com.hospital.hospitalsystem.modules.login.dao.mapper.UserMessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2023/2/22
 */
@Component
public class UserMessageService {
    @Autowired
    private UserMessageMapper userMessageMapper;

    public void insertSelective(UserMessageEntity userMessageEntity){
        userMessageMapper.insertSelective(userMessageEntity);
    }

    public UserMessageEntity selectOneByExample(Example example) {
        return userMessageMapper.selectOneByExample(example);
    }

    public List<UserMessageEntity> selectByExample(Example example){
        return userMessageMapper.selectByExample(example);
    }
}
